package cn.ilikes.tools.nosql.jpa.envs;

import java.util.Properties;

import org.slf4j.Logger;

import cn.ilikes.tools.logs.Loggerfactory;
import cn.ilikes.tools.nosql.jpa.JPASQLSystemEnv;
import cn.ilikes.tools.nosql.jpa.configs.envs.JPASQLConfigurationException;
import cn.ilikes.tools.nosql.jpa.configs.envs.sys.IConfigure;
import cn.ilikes.tools.nosql.jpa.configs.envs.sys.SystemEnvConfigure;

public class JPASQLSystemEnvConfigFactory {

	private Logger logger = Loggerfactory.instance(JPASQLSystemEnvConfigFactory.class);

	public JPASQLSystemEnvConfigFactory() {
		super();
	}

	public void init(JPASQLSystemEnv systemEnv) {
		Loggerfactory.info(logger, "Start Init JPA SQL System Env Config Factory ");
		try {
			Properties properties = new Properties();
			IConfigure configure = new SystemEnvConfigure(properties);
			configure.config(systemEnv);
		} catch (JPASQLConfigurationException e) {
			e.printStackTrace();
		}
	}

}
